home *** CD-ROM | disk | FTP | other *** search
-
- READ.ME 12 May 87
-
-
- The files contained on this disk will allow you capture and
- save digitized pictures created by the digitizer/transmitter board,
- do simple image processing on the digitized pictures, and display
- the pictures on either the receiver/display board or on your IBM PC
- or compatible using an EGA board.
-
-
-
- Hardware Connection
- -------------------
-
- The ImageWise boards are connected to your IBM PC through the
- COM1 serial port. A "null modem" cable is necessary so that the
- data and handshaking signals are properly routed between the Image-
- Wise boards and the computer. The same cable can be used for both
- the digitizer/transmitter and the receiver/display, but only one
- board may be connected to the computer at a time. A cable made
- according to the following diagram should work just fine:
-
-
- IBM PC COM1 ImageWise
- ----------- ---------
-
- 2 <_________ _________> 2
- \/
- 3 <_________/\_________> 3
-
- 4 <_________ _________> 4
- \/
- 5 <_________/\_________> 5
-
- 7 <____________________> 7
-
-
-
- The next step is to set the option switches. The digitizer/
- transmitter board should be set up as follows:
-
-
- SW1 SW2 SW3 SW4 SW5 SW6 SW7 SW8
- --- --- --- --- --- --- --- ---
- ON ON OFF OFF ON OFF OFF OFF
-
-
- The receiver/display board works best with the following switch
- settings:
-
- SW1 SW2 SW3 SW4 SW5 SW6 SW7 SW8
- --- --- --- --- --- --- --- ---
- ON ON OFF OFF OFF OFF OFF OFF
-
-
- Whenever one of the programs expects a picture from the
- digitizer/transmitter board, be sure that board is plugged into
- the COM1 port. Likewise, when a program expects to be sending
- a picture to the receiver/display board, be sure that board is
- plugged in. If the wrong board is plugged into the COM1 port,
- unpredictable results will be obtained.
-
-
-
- The Programs
- ------------
-
- GRAB will store the images in uncompressed format unless you use
- the /C flag. All of the image processing routines expect to see
- expanded files, so this trades off some time for some disk space.
- If you're not using any of the other routines, you may want to
- modify the source code for GRAB so that it doesn't do the expansion.
-
-
-
- --- program syntax and descriptions
-
- NOTE: A file shown in brackets, as [image2], may be omitted.
- If omitted, the resulting image will replace the first file.
-
- Most of these programs are drivers that use procedures and functions
- contained in PICTURES.P and IMAGES.P -- they serve as examples more
- than finished products!
-
- ADD image1 image2 [image3] image1 + image2 -> image3
- COMPARE image1 image2 [image3] Abs(image1+image2) -> image3
- COMPRESS image1 [image2] compresses image data
- COUNT image1 integer counts # pels >= integer
- EDGE image1 [image2] finds outlines
- EXPAND image1 [image2] expands image data
- FILTER image1 [image2] smooths image edges
- GRAB image1 [/n] [/c] gets image from transmitter
- /c to save compressed file
- /n to suppress prompts
- HISTO image1 displays brightness histogram
- INVERT image1 [image2] flips brightness levels
- MASK image1 image2 [image3] removes image1 pels where image2 = 0
- MULTIPLY image1 realnumber scales image brightness
- SHOW image1 sends image to receiver
- SHOWEGA1 image1 shows image on EGA, fixed levels
- SHOWEGA2 image1 shows image on EGA, histogram levels
- SHOWEGA3 image1 shows image on EGA, false colors
- SUBTRACT image1 image2 [image3] image1 - image2 -> image3
- THRESH image1 integer removes pels less than integer
-
-
- --- these files contain common routines
-
- DECLARES P CONSTs, TYPEs, and VARs
- HEXUTIL P hex conversion routines
- IMAGES P image processing routines
- PICTURES P file I/O and suchlike
- SERIAL P serial port handlers
-
- All of the .PAS files include (using {$I}) all of the .P files. You
- can reduce the size of the .COM files by doing some surgery on the
- includes to remove the routines that aren't needed.
-
-
-
- Usage Notes
- -----------
-
- Turbo Pascal version 3.0 or later is required to compile all of the
- above programs. Additionally, it must be a version specifically for
- the IBM PC and not a generic MS-DOS version.
-
- To use COM2 instead of COM1, change the value of 'COMport' in the
- DECLARES.P "include" module in accordance with the comment next to
- the line. All the programs that deal with the serial port must
- then be recompiled.
-
- The default bit rate used by the programs is 28.8 Kbps. Some slower
- machines may not be able to keep up and may require a slower bit rate
- for reliable operation. To slow down the bit rate, change the value
- of 'bitsec' in the DECLARES.P "include" module. All the programs
- that deal with the serial port must then be recompiled and the option
- switches on the ImageWise boards must be set to match the new bit
- rate.
-